package top.rainf.mapper;

import org.apache.ibatis.annotations.Mapper;
import top.rainf.domain.vo.Block;
import top.rainf.domain.vo.UserBaseInfo;

import java.util.List;

/**
 * @author 星环
 * @date 2023/5/10 11:37:28
 * @description
 */

@Mapper
public interface BlockMapper {


    List<Block> selectAll();
    Block selectById(int id);

    int deleteById(int id);

    int deleteByIds(List<Integer> idList);

    int updateById(Block block);

    int selectTodayPostCount(int id);

    List<UserBaseInfo> selectAllBlockAdminBaseInfo(int blockId);

    int addPostCount(int blockId);
}
